package com.zhanglifan.mapper;

import com.zhanglifan.pojo.User;

/**
 * Information
 * Author: ZhangLifan
 * Time: 2017/11/7 9:11
 * Description:
 */
public interface UserMapper {

    /**
     * 根据id查询用户
     *
     * @param id
     * @return
     */
    User queryUserById(Long id);

    /**
     * 新增
     *
     * @param user
     */
    void saveUser(User user);

    /**
     * 更新
     *
     * @param user
     */
    void updateUserById(User user);

    /**
     * 根据id删除
     *
     * @param id
     */
    void deleteUserById(Long id);

}
